home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 2 (DVD) / XENIADVD2.iso / Patch / Project Nomads / pnomads_patch2_eng.exe / MAINDIR / Run / scripts / statewatcher / artefactstorage.tcl next >
Encoding:
Text File  |  2002-09-29  |  3.2 KB  |  131 lines

  1. #
  2. #   Zustands-â–„berwachungs-Script
  3. #   State Watch Script
  4. #
  5. #   Factory
  6. #
  7. #   created:    15-Jun-2000 Bernd
  8. #   
  9. #   (C) COPYRIGHT 2000 RADONLABS GMBH
  10. #
  11.  
  12. proc artefactstoragewatch_normal {} {
  13.  
  14.     # vorerst hier unzerstoerbar. Bleibt so, bis es aufgesammelt
  15.     # (in BackPack) oder gebaut (kein Artefakt mehr) wird 
  16.     if {[.getartefactmode] == "false"} {
  17.         .announcestate house
  18.     } elseif {[.iscollected] == "true"} {
  19.         .announcestate backpack
  20.     } elseif {[.getcharges] <= 0} {
  21.         .setremoveable true
  22.     } elseif {[.getcreator] != "null"} {
  23.         .announcestate infactoryslot
  24.     }
  25. }
  26.  
  27. proc artefactstoragewatch_infactoryslot {} {
  28.  
  29.     # vorerst hier unzerstoerbar. Bleibt so, bis es aufgesammelt
  30.     # (in BackPack) oder gebaut (kein Artefakt mehr) wird 
  31.     if {[.getartefactmode] == "false"} {
  32.         .announcestate house
  33.     } elseif {[.iscollected] == "true"} {
  34.         .announcestate backpack
  35.     } elseif {[.getcharges] <= 0} {
  36.         .setremoveable true
  37.     } elseif {[.getcreator] == "null"} {
  38.         .announcestate normal
  39.     }
  40. }
  41.  
  42. proc artefactstoragewatch_bauphase {} {
  43.  
  44.     # kann zerstoert oder wieder zusammengeklappt werden
  45.     if {[.iskilled] == "true"} {
  46.         .announcestate explode
  47.     } elseif {[.getartefactmode] == "true"} {
  48.         .announcestate normal
  49.     } elseif {[.isstatetimeover] == "true"} {
  50.         .announcestate house
  51.     }
  52. }
  53.  
  54.  
  55. proc artefactstoragewatch_house {} {
  56.  
  57.     # kann zerstoert oder wieder zusammengeklappt werden
  58.     if {[.iskilled] == "true"} {
  59.         .announcestate explode
  60.     } elseif {[.getartefactmode] == "true"} {
  61.         .announcestate normal
  62.     } elseif {[.removebuilding] == "true"} {
  63.         .announcestate remove
  64.     }
  65. }
  66.  
  67. proc artefactstoragewatch_explode {} {
  68.  
  69.     # Uebergang zum Artefakt oder Wegnehmen
  70.     if {[.isanimfinished] == "true"} {
  71.         if {[.getcharges] <= 0} {
  72.             .setremoveable true
  73.         } else {
  74.             .announcestate normal
  75.         .removefromisland
  76.         }
  77.     }
  78. }
  79.  
  80. proc artefactstoragewatch_remove {} {
  81.  
  82.     # Uebergang zum Artefakt oder Wegnehmen
  83.     if {[.isanimfinished] == "true"} {
  84.         if {[.getcharges] <= 0} {
  85.             .setremoveable true
  86.         } else {
  87.             .announcestate normal
  88.         .removefromisland
  89.         }
  90.     }
  91. }
  92.  
  93. proc artefactstoragewatch_backpack {} {
  94.  
  95.     # Moeglich: usgeworfen (Nicht mehr "gesammelt") oder im
  96.     # Menue gezeigt (sichtbar)
  97.     if {[.iscollected] == "false"} {
  98.         .announcestate normal
  99.     } elseif {[.isvisible] == "true"} {
  100.         .announcestate menue
  101.     }
  102. }
  103.  
  104. proc artefactstoragewatch_menu {} {
  105.  
  106.     if {[.isvisible] == "false"} {
  107.         .announcestate backpack
  108.     } elseif {[.getartefactuse] == "true"} {
  109.         .announcestate build
  110.     } elseif {[.iscollected] == "false"} {
  111.         .announcestate normal
  112.     }
  113. }
  114.  
  115. proc artefactstoragewatch_build {} {
  116.  
  117.     if {[.iskilled] == "true"} {
  118.         .announcestate explode
  119.     } elseif {[.getartefactmode] == "false"} {
  120.         .announcestate bauphase
  121.     } elseif {[.getartefactuse] == "false"} {
  122.         .announcestate backpack
  123.     }
  124. }
  125.  
  126. proc artefactstoragewatch_cinematic {} {
  127.  
  128.     # empty
  129. }    
  130.  
  131.